package csce315.group10.androidapp;

import csce315.group10.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class PotentialStoryEntry extends Activity{
	/* private instance variables */
	CustomApp appState;
/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.potentialstoryentry);
        appState = ((CustomApp)getApplicationContext());
        /* set all fields to Event data */
        PotentialStory current_event = getIntent().getParcelableExtra("potentialStory");
        
        TextView event_name = (TextView) findViewById(R.id.Story_name_text);
        event_name.setText(current_event.get_story_name());
        TextView event_date = (TextView) findViewById(R.id.Story_date_text);
        event_date.setText(current_event.get_story_date());
        TextView event_time = (TextView) findViewById(R.id.Story_time_text);
        event_time.setText(current_event.get_story_time());
        TextView contact_name = (TextView) findViewById(R.id.Story_contact_name_text);
        contact_name.setText(current_event.get_con_name());
        TextView contact_phone = (TextView) findViewById(R.id.Story_contact_phone_text);
        contact_phone.setText(current_event.get_con_phone());
        TextView staffer_covering = (TextView) findViewById(R.id.Story_staffer_covering_text);
        staffer_covering.setText(current_event.get_suggested_by());
        TextView location = (TextView) findViewById(R.id.Story_location_text);
        location.setText(current_event.get_location());
        TextView notes = (TextView) findViewById(R.id.Story_notes_text);
        notes.setText(current_event.get_notes());
    }
    
   
}